﻿using System.ServiceModel;
using ValidationFramework;

namespace QSWcfServiceLibrary
{
    [ServiceContract]
    public interface IPersonService
    {
        [OperationContract]
        [FaultContract(typeof(ValidationFaultException))]
        void SavePerson([ValidatableRule(UseMemberErrorMessages = true)]Person person);

        [OperationContract]
        [FaultContract(typeof(ValidationFaultException))]
        void Find([RequiredStringRule]string name);
    }
}
